package com.zfast.forge.pojo.dto;

import com.zfast.config.valid.Create;
import javax.validation.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;


/**
 * 玩家实卡
 *
 * @author zgn
 * @email
 * @date 2024-02-06 14:27:49
 */
@Data
@SuperBuilder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "bad_player")
@ApiModel(value = "Player", description = "玩家实卡")
public class Player implements Serializable{
    private static final long serialVersionUID=1L;

    @Id
    @Column(name = "id")
    @ApiModelProperty("主键")
    @NotNull(message = "主键不可为空", groups = {Create.class})
    private String id;

    @Column(name = "name")
    @ApiModelProperty("别名")
    private String name;

    @Column(name = "hand")
    @ApiModelProperty("手")
    private Double hand;

    @Column(name = "arm")
    @ApiModelProperty("臂")
    private Double arm;

    @Column(name = "brain")
    @ApiModelProperty("脑")
    private Double brain;

    @Column(name = "leg")
    @ApiModelProperty("腿")
    private Double leg;

    @Column(name = "feet")
    @ApiModelProperty("脚")
    private Double feet;

    @Column(name = "part_id")
    @ApiModelProperty("角色Id")
    private String partId;

    @Column(name = "del_flag")
    @ApiModelProperty("删除标志0-正常,1-已删除")
    private Boolean delFlag;

    @Column(name = "age")
    @ApiModelProperty("岁数")
    private Integer age;

    @Column(name = "exp")
    @ApiModelProperty("经验")
    private Double exp;

    @Column(name = "reaction")
    @ApiModelProperty("反应时间")
    private Double reaction;

    @Column(name = "response")
    @ApiModelProperty("启动时间")
    private Double response;

    @Transient
    @ApiModelProperty("模糊查询字段")
    private String whe;
}
